/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkgjeudestrategie;

import java.awt.Color;
import java.awt.Graphics;
import java.util.Random;
import javax.swing.JComponent;

/**
 *
 * @author Admin
 */
public class LogoVille extends Zoomable {
     char y=0;
     char olderY=' ';
     char oldY=' ';
     boolean gotVoyelle=false;
    String name;
    public LogoVille(){Name newName=new Name();
    name=newName.getName();
    
       setSize(400,400); 
    }
    @Override
    public void paintComponent(Graphics g){
        
        
        g.setColor(Color.black);
        g.fillRect((int) ((getWidth()/2)-(35)), (int) ((3*getWidth()/4)-(10)), (int) (70),(int) (30));
        g.setColor(Color.white);
        g.drawRect((int) ((getWidth()/2)-(35)), (int) ((3*getWidth()/4)-(10)), (int) (70),(int) (30));
        g.drawString(name, (int) ((getWidth()/2)-(20)),(int) ((3*getWidth()/4)+(3)));
    }
    public void setName(String s){
        name=s;
    }
    public String getName(){
        return name;
    }}
      